package inherintance;

public class PlayerManager extends Player {
	

	
	public void playerManager(Player p){
		
		if(p instanceof SoccerPlayer){
			SoccerPlayer sp = (SoccerPlayer) p;
			sp.kickBall();
			
		}else if(p instanceof TennisPlayer) {
			//Do tennis player stuff
			
			TennisPlayer tp = (TennisPlayer) p;
			tp.swingRacket();
		}
	
	}

}
